<%@ page import="BL.AccessDB"%>
<%@ page import="BL.Eintrag"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
    
    <%		
    int id = Integer.parseInt(request.getParameter("id"));
	Eintrag eintrag = AccessDB.getEintrag(id);
	int [][] oeff;
	%>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<style type="text/css">
html {
	height: 100%
}

body {
	height: 100%;
	margin: 0px;
	padding: 0px
}

#map_canvas {
	height: 100%
}
</style>
<script type="text/javascript"
	src="https://maps.google.com/maps/api/js?sensor=true">
	
</script>
</head>
<body>
	<jsp:include page="header.jsp" />
	
	
	<h2>Details zum Eintrag:</h2>
	<table border="1">
		<tr><th valign='top'>Name:</th><td><%=eintrag.getName()%></td></tr>
		<tr><th valign='top'>Beschreibung:</th><td><%=eintrag.getBeschreibung()%></td></tr>
		<tr><th valign='top'>Bewertung:</th><td><%=eintrag.getBewertung()%>/10</td></tr>
					<%oeff = eintrag.getOeffnungszeiten(); %>
					<%out.println("<tr><th valign='top'>Oeffnungszeiten:</th><td><b>Montag:</b><br>"
								+  AccessDB.setZeitNull(oeff[0][0]).substring(0, 2)+":"+ AccessDB.setZeitNull(oeff[0][0]).substring(2)
								+ " - "
								+ AccessDB.setZeitNull(oeff[0][1]).substring(0, 2)+":"+AccessDB.setZeitNull(oeff[0][1]).substring(2)
								+ " Uhr und<br>"
								+ AccessDB.setZeitNull(oeff[0][2]).substring(0, 2)+":"+AccessDB.setZeitNull(oeff[0][2]).substring(2)
								+ " - "
								+ AccessDB.setZeitNull(oeff[0][3]).substring(0, 2)+":"+AccessDB.setZeitNull(oeff[0][3]).substring(2)
								+ " Uhr<br><b>Dienstag:</b><br>"
								+  AccessDB.setZeitNull(oeff[1][0]).substring(0, 2)+":"+AccessDB.setZeitNull(oeff[1][0]).substring(2)
								+ " - "
								+ AccessDB.setZeitNull(oeff[1][1]).substring(0, 2)+":"+AccessDB.setZeitNull(oeff[1][1]).substring(2)
								+ " Uhr und<br>"
								+ AccessDB.setZeitNull(oeff[1][2]).substring(0, 2)+":"+AccessDB.setZeitNull(oeff[1][2]).substring(2)
								+ " - "
								+ AccessDB.setZeitNull(oeff[1][3]).substring(0, 2)+":"+AccessDB.setZeitNull(oeff[1][3]).substring(2)
								+ " Uhr<br><b>Mittwoch:</b><br>"
								+  AccessDB.setZeitNull(oeff[2][0]).substring(0, 2)+":"+AccessDB.setZeitNull(oeff[2][0]).substring(2)
								+ " - "
								+ AccessDB.setZeitNull(oeff[2][1]).substring(0, 2)+":"+AccessDB.setZeitNull(oeff[2][1]).substring(2)
								+ " Uhr und<br>"
								+ AccessDB.setZeitNull(oeff[2][2]).substring(0, 2)+":"+AccessDB.setZeitNull(oeff[2][2]).substring(2)
								+ " - "
								+ AccessDB.setZeitNull(oeff[2][3]).substring(0, 2)+":"+AccessDB.setZeitNull(oeff[2][3]).substring(2)
								+ " Uhr<br><b>Donnerstag:</b><br>"
								+  AccessDB.setZeitNull(oeff[3][0]).substring(0, 2)+":"+AccessDB.setZeitNull(oeff[3][0]).substring(2)
								+ " - "
								+ AccessDB.setZeitNull(oeff[3][1]).substring(0, 2)+":"+AccessDB.setZeitNull(oeff[3][1]).substring(2)
								+ " Uhr und<br>"
								+ AccessDB.setZeitNull(oeff[3][2]).substring(0, 2)+":"+AccessDB.setZeitNull(oeff[3][2]).substring(2)
								+ " - "
								+ AccessDB.setZeitNull(oeff[3][3]).substring(0, 2)+":"+AccessDB.setZeitNull(oeff[3][3]).substring(2)
								+ " Uhr<br><b>Freitag:</b><br>"
								+  AccessDB.setZeitNull(oeff[4][0]).substring(0, 2)+":"+AccessDB.setZeitNull(oeff[4][0]).substring(2)
								+ " - "
								+ AccessDB.setZeitNull(oeff[4][1]).substring(0, 2)+":"+AccessDB.setZeitNull(oeff[4][1]).substring(2)
								+ " Uhr und<br>"
								+ AccessDB.setZeitNull(oeff[4][2]).substring(0, 2)+":"+AccessDB.setZeitNull(oeff[4][2]).substring(2)
								+ " - "
								+ AccessDB.setZeitNull(oeff[4][3]).substring(0, 2)+":"+AccessDB.setZeitNull(oeff[4][3]).substring(2)
								+ " Uhr<br><b>Samstag:</b><br>"
								+  AccessDB.setZeitNull(oeff[5][0]).substring(0, 2)+":"+AccessDB.setZeitNull(oeff[5][0]).substring(2)
								+ " - "
								+ AccessDB.setZeitNull(oeff[5][1]).substring(0, 2)+":"+AccessDB.setZeitNull(oeff[5][1]).substring(2)
								+ " Uhr und<br>"
								+ AccessDB.setZeitNull(oeff[5][2]).substring(0, 2)+":"+AccessDB.setZeitNull(oeff[5][2]).substring(2)
								+ " - "
								+ AccessDB.setZeitNull(oeff[5][3]).substring(0, 2)+":"+AccessDB.setZeitNull(oeff[5][3]).substring(2)
								+ " Uhr<br><b>Sonntag:</b><br>"
								+  AccessDB.setZeitNull(oeff[6][0]).substring(0, 2)+":"+AccessDB.setZeitNull(oeff[6][0]).substring(2)
								+ " - "
								+ AccessDB.setZeitNull(oeff[6][1]).substring(0, 2)+":"+AccessDB.setZeitNull(oeff[6][1]).substring(2)
								+ " Uhr und<br>"
								+ AccessDB.setZeitNull(oeff[6][2]).substring(0, 2)+":"+AccessDB.setZeitNull(oeff[6][2]).substring(2)
								+ " - "
								+ AccessDB.setZeitNull(oeff[6][3]).substring(0, 2)+":"+AccessDB.setZeitNull(oeff[6][3]).substring(2)
								+ "Uhr</td></tr>");

					%>
		<tr>
		</tr>
	</table>
	
	
</body>
</html>